﻿<navfx:Page x:Class="NavFx.NavFxDemo.PanelPage2"
			xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
			xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
			xmlns:navfx="clr-namespace:NavFx;assembly=NavFx"
			HorizontalAlignment="Stretch"
			VerticalAlignment="Stretch"
			Background="White">
	<navfx:Page.Resources>
		<Style x:Key="headingText"
			   TargetType="TextBlock">
			<Setter Property="Margin"
					Value="10,5,10,5" />
			<Setter Property="FontSize"
					Value="15" />
			<Setter Property="FontWeight"
					Value="Bold" />
		</Style>
		<Style x:Key="paragraphText"
			   TargetType="TextBlock">
			<Setter Property="Margin"
					Value="5" />
			<Setter Property="FontSize"
					Value="12" />
			<Setter Property="TextWrapping"
					Value="Wrap" />
		</Style>
	</navfx:Page.Resources>

	<!-- main layout grid-->
	<Grid x:Name="pageLayout"
		  HorizontalAlignment="Stretch"
		  VerticalAlignment="Stretch">

		<Grid.ColumnDefinitions>
			<ColumnDefinition />
		</Grid.ColumnDefinitions>


		<Grid.RowDefinitions>
			<RowDefinition Height="50" />
			<RowDefinition />
		</Grid.RowDefinitions>

		<TextBlock Grid.Column="0"
				   Grid.Row="0"
				   Style="{StaticResource headingText}"
				   Text="External Page 2" />

		<Grid HorizontalAlignment="Stretch"
			  VerticalAlignment="Top"
			  Grid.Column="0"
			  Grid.Row="1">

			<Grid.ColumnDefinitions>
				<ColumnDefinition />
			</Grid.ColumnDefinitions>

			<Grid.RowDefinitions>
				<RowDefinition />
				<RowDefinition />
				<RowDefinition />
				<RowDefinition />
				<RowDefinition />
				<RowDefinition />
			</Grid.RowDefinitions>

			<TextBlock Style="{StaticResource paragraphText}"
					   Grid.Column="0"
					   Grid.Row="0">
					This page has been loaded from the same external library as PanelPage1.
			</TextBlock>

			<TextBlock Style="{StaticResource paragraphText}"
					   Grid.Column="0"
					   Grid.Row="1">
				There are two pages in the library.  This one PanelPage2 and another PanelPage1, you can see this in the Registered Pages list.
				Both of these pages inherit from NavFx.Page and demonstrate the loading of simple content pages from an external library.
			</TextBlock>

			<TextBlock Style="{StaticResource paragraphText}"
					   Grid.Column="0"
					   Grid.Row="2">		
					Click the External 1 button to see details of the methods used to display pages.
			</TextBlock>			
		</Grid>
	</Grid>
</navfx:Page>
